﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Mvc;
using OddUserManager.Service.IServices;
using OddUserManager.Web.Models;

// For more information on enabling MVC for empty projects, visit https://go.microsoft.com/fwlink/?LinkID=397860

namespace OddUserManager.Web.Controllers
{
    public class JCTestStrategyGroupController : Controller
    {
        private IJCTestStrategyGroupService _serivce;

        public JCTestStrategyGroupController(IJCTestStrategyGroupService serivce) {
            _serivce = serivce;
        }

        public IActionResult GetAllJCTestStrategyGroup()
        {
            JsonData d = new JsonData();
            try
            {
                d.Data = _serivce.GetAllJCTestStrategyGroups();
            }
            catch (Exception ex)
            {
                d.Message = ex.Message;
                d.Success = false;
            }
            return Json(d);
        }



    }
}
